package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the AUD_BUSQ_MULT_SEDES database table.
 * 
 */
@Entity
@Table(name="AUD_BUSQ_MULT_SEDES")
public class AudBusqMultSede implements Serializable {
	private static final long serialVersionUID = 1L;
	private AudBusqMultSedePK id;
	private String tipoDocBusq;
	private AudBusqPartida audBusqPartida;

    public AudBusqMultSede() {
    }


	@EmbeddedId
	public AudBusqMultSedePK getId() {
		return this.id;
	}

	public void setId(AudBusqMultSedePK id) {
		this.id = id;
	}
	

	@Column(name="TIPO_DOC_BUSQ", nullable=false, length=1)
	public String getTipoDocBusq() {
		return this.tipoDocBusq;
	}

	public void setTipoDocBusq(String tipoDocBusq) {
		this.tipoDocBusq = tipoDocBusq;
	}


	//bi-directional many-to-one association to AudBusqPartida
    @ManyToOne
	@JoinColumn(name="AUD_BUSQ_PARTIDA_ID", nullable=false, insertable=false, updatable=false)
	public AudBusqPartida getAudBusqPartida() {
		return this.audBusqPartida;
	}

	public void setAudBusqPartida(AudBusqPartida audBusqPartida) {
		this.audBusqPartida = audBusqPartida;
	}
	
}